/*
 * Object.h
 *
 *  Created on: Nov 10, 2010
 *      Author: dhovemey
 */

#ifndef OBJECT_H_
#define OBJECT_H_

#include <cstdint>

typedef uint32_t ClassId;

struct Object;

union Slot {
	void *p;
	Object *o;
	int32_t i;
};

struct Object {
	ClassId clsId;
	int32_t flags;
	Slot slots[0]; // unwarranted chumminess
};

#endif /* OBJECT_H_ */
